package com.cicigodd.brick.plug.common.entity;

import io.swagger.annotations.ApiModelProperty;
import io.swagger.models.auth.In;
import lombok.Data;

import java.util.Date;
import java.util.List;

/**
 * 当前登录用户的详细信息
 *
 * @author cicigodd
 * @date 2022/09/23 08:42:00
 */
@Data
public class SimpleUserInfo {

    @ApiModelProperty("用户id")
    private Integer userId;

    @ApiModelProperty("姓名")
    private String realName;

    @ApiModelProperty("昵称")
    private String nickName;

    @ApiModelProperty("账号")
    private String account;

    @ApiModelProperty("头像")
    private String avatar;

    @ApiModelProperty("生日")
    private Date birthday;

    @ApiModelProperty("性别 M-男 F-女")
    private String sex;

    @ApiModelProperty("手机号")
    private String phone;

    /**
     * 所属角色
     */
    @ApiModelProperty("所属角色")
    private List<String> roles;
    /**
     * 按钮权限
     */
    @ApiModelProperty("按钮权限")
    private List<String> perms;
}
